package com.gopay.scheduler.job;

import com.gopay.remote.fundcps.service.FundcGopayOpenAccService;
import com.gopay.scheduler.GopayBaseJob;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author jianghp
 * @description 刷新基金开户状态
 * @date 2017/12/23 12:31
 * Copyright (c) 2017. www.gopay.com.cn Inc.All rights reserved.
 */
public class FundFlushAcctStatusJob extends GopayBaseJob {
    /** logger */
    private static final Logger LOGGER = LoggerFactory.getLogger(FundFlushAcctStatusJob.class);

    @Autowired
    private FundcGopayOpenAccService fundcGopayOpenAccService;

    @Override
    protected void doJobInternal() {
        LOGGER.info("【基金用户开户状态同步】Start");
        try {
            fundcGopayOpenAccService.executeFlushAcctStatus();
        } catch (Exception e) {
            LOGGER.error("【基金用户开户状态同步】发生异常", e);
        }
        LOGGER.info("【基金用户开户状态同步】End");
    }
}
